import httpRequest from '@/utils/httpRequest'

// 列表
export function getList(data) {
    return httpRequest({
        url: '/financeReceive/list',
        method: 'get',
        params: data
    })
}

// 详情
export function getById(data) {
    return httpRequest({
        url: '/financeReceive',
        method: 'get',
        params: data
    })
}

export function getSum(data) {
    return httpRequest({
        url: '/financeReceive/getSum',
        method: 'get',
        params: data
    })
}

// 删除
export function del(data) {
    return httpRequest({
        url: '/financeReceive/delete',
        method: 'post',
        data: data
    })
}

// 新增或修改
export function save(data) {
    return httpRequest({
        url: '/financeReceive',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}

// 新增或修改
export function payBack(data) {
    return httpRequest({
        url: '/financeReceive/payBack',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}
// 修改状态
export function updateState(data) {
    return httpRequest({
        url: '/financeReceive/updateStatus',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}
